
const validator = {
	_id: {
		rules: [{
			required: true,
			errorMessage: '员工号不能为空'
		}, {
			format: 'string'
		}]
	},
	username: {
		rules: [{
			required: true,
			errorMessage: '请输入员工姓名'
		}, {
			format: 'string'
		}]
	},
	station: {
		rules: [{
			required: true,
			errorMessage: '请输入员工岗位'
		}, {
			format: 'string'
		}]
	},
	gender: {
		rules: [{
			required: true,
			errorMessage: '请选择员工性别'
		}]
	},
	mobile: {
		rules: [{
			pattern: '^\\+?[0-9-]{3,20}$',
			errorMessage: '请输入正确的手机号'
		}, {
			format: 'string'
		}]
	},
	email: {
		rules: [{
			format: 'email',
			errorMessage: '请输入正确格式的邮箱'
		}]
	}
}

export { validator }